define(function (require, exports, module) {


	var zoom = 1;
	var $window = $(_top);
	var timer;

	var setScale = function () {

		var $height = $window.height();
		var $width = $window.width();
		var whhw = "";
		console.log($height / $width, 1080 / 3840)

		//zoom = (window.innerHeight / 1080).toFixed(3);

		// $('.wrapper').removeClass("wh hw").addClass(whhw).css({
		//    // 'transform': 'translate(-50%, -50%)  scale(' + zoom + ')'
		//     'transform': 'translate(-50%, -50%)  scale(' + zoom + ')'
		// });

		// zoom = ($height / 1080).toFixed(3);
		console.log($height / $width, 1080 / 3840);

		zoom = ($width / 3840).toFixed(4);

		$('.wrapper').removeClass("wh hw").addClass(whhw).css({
			'transform': '  scale(' + zoom + ')',
			opacity: 1
		});
	};


	$window.on('resize', function () {
		clearTimeout(timer);
		timer = setTimeout(function () {
			setScale();
		}, 160);
	});

	setTimeout(function () {
		setScale();
	}, 160);
	//$(".wrapper").css('display','block');
	//loadCicles();

	module.exports = setScale;
});